/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package form;

import com.sun.lwuit.Form;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.events.ActionListener;
import midlet.MainMidlet;

/**
 *
 * @author aisyah
 */
public class ParentForm extends Form implements ActionListener{
      //Paths
    public static final String  SPLASH_IMAGE    = "/res/image/splashScr.png";
    public static final String  BG_IMAGE        = "/res/image/bg02.png";



    protected ParentForm parent;
    protected ParentForm nextForm;
    protected MainMidlet midlet;

    public ParentForm(MainMidlet midlet, ParentForm parent, String title){
        super(title);

        this.midlet = midlet;
        this.parent = parent;
    }

    public void actionPerformed(ActionEvent ae) {
    }

     protected void disposeForm() {
//      System.out.println("parent = " + parent +"nextParent = "+ parent.nextForm);
        if (this.parent != null) {
            this.parent.show();
            this.parent.nextForm = null;
        }
    }

    

}
